package com.hp.ongoing.app.view.form.contract;

import java.io.File;

import javax.swing.JFileChooser;

@SuppressWarnings("serial")
public class MyFileChooser extends JFileChooser {

	public MyFileChooser() {

		super.setFileFilter(new javax.swing.filechooser.FileFilter() {
			public boolean accept(File f) {
				return f.getName().toLowerCase().endsWith("txt")
						|| f.isDirectory();
			}

			public String getDescription() {
				return "Somente arquivos de texto (.txt)";
			}
		});

	}
}
